package com.cms.common.model.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.*;

/**
 * 操作日志
 */
@Entity
@Data
public class ActionLog extends BaseEntity {

    @JsonIgnore
    @ManyToOne(cascade = CascadeType.REFRESH, optional = true)
    @JoinColumn(name = "admin_user_id", referencedColumnName = "id")
    private AdminUser adminUser = null;

    private String action = null;//操作

    private Long typeId = null;//操作对像

    private String type = null;//操作对像类型

    @Column(columnDefinition = "text")
    private String note;

}
